package com.yang.booking.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yang.booking.pojo.Teacher;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Repository
public interface TeacherMapper extends BaseMapper {

    @Select("select t.* from teacher t inner join course c on t.t_id = c.t_id where c.c_id = #{cId}")
    Teacher QueryTeacher(String cId);
}
